______________________________________
|The PSPenguin Windowing System       |
______________________________________
|                                     |
| written by                          |
| sony_psp_player                     |
|                                     |
|                                     |
|                                     |
|                                     |
|                                     |
|                                     |
|                                     |
______________________________________

PSPenguin has a very flexible windowing system.

You can add a window by:
newwindow(integer X, integer Y, integer Width, integer Height, char Title, function Function, integer Dragable, [color Top], [color BG])

Default colors are used if no colors specified.

Functions of the window: --Notice: You don't have to worry about the current X and Y position of the window on the screen.

There is a function determining X and Y position of currently processed window:
windows[windowrow[i]].x
windows[windowrow[i]].y

To print text to the window use:
windows[windowrow[i]].bgimg:print(integer X, integer Y, char Text, color Color)

To blit an image to the window use:
windows[windowrow[i]].bgimg:blit(integer X, integer Y, image Image)

To clear the window like the screen so you have a blank window with no text/images:
windows[windowrow[i]].bgimg:clear(windows[windowrow[i]].color)


Code of a fully working window:

	------------------------------------Code----------------------------------------
	function welcome()
		windows[windowrow[i]].bgimg:print(10,10,"Welcome to PSPenguin!")
	end

	newwindow(30, 30, 200, 50, "Welcome!",welcome,1) -- it uses the default colors
	------------------------------------Code----------------------------------------

Adding it to PSPenguin:

1. Make a new file called "[yourwindow].lua".
2. Open the newly created file.
3. Write your function.
4. Add this: newwindow(integer X, integer Y, integer Width, integer Height, char Title, function YourNewlyWrittenFunction, integer Dragable, [color Top], [color BG]).
5. Save the file.
6. Close the file.
7. Open PSPenguin.lua.
8. Add 'dofile"[yourwindow].lua"' to the dofiles.
9. Save the file.
10. Close the file.
11. Start or Restart PSPenguin to see you new window.

